import React from "react";
// class Optimization extends React.PureComponent {
//   render() {
//     console.log("Optimization");
//     return (
//       <div>
//         <h1>Optimization</h1>
//       </div>
//     );
//   }
// }

export const Optimization = (props) => {
  console.log("Optimization子组件渲染");
  return (
    <div>
      <h1>Optimization</h1>
      {/* <div>
        <h5>{props.staticInfo.info}</h5>
        <button onClick={props.staticFn}>prop过来的静态方法</button>
      </div> */}
    </div>
  );
};

export default Optimization;
